package com.triones.ljr.controller.web;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.triones.ljr.entity.dto.CollectDO;
import com.triones.ljr.entity.vo.BannerVO;
import com.triones.ljr.entity.vo.CustomCollectVO;
import com.triones.ljr.service.CollectService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户政策收藏
 *
 * @Author: triones
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/system/collect")
public class CollectController extends BaseController {

    private final CollectService collectService;

    /**
     * 列表（分页）
     */
    @SaCheckPermission("system:collect:pageList")
    @GetMapping("/pageList")
    public TableDataInfo<CustomCollectVO> pageList(CollectDO dto, PageQuery pageQuery) {
        return collectService.pageList(dto, pageQuery);
    }
}
